package com.ym521.facecheck.bean

import android.graphics.Bitmap

/**
 *@author Ym
 *E-mail: 2435970206@qq.com
 *createTime:2024/6/21
 *explain: openCV 处理的图像帧对象
 *
 */
internal data class ImageBitmap(
    val bitmap: Bitmap,
    var time: Long = 0
) {

    fun isUse(): Boolean {
        val current = System.currentTimeMillis()
        return (current - time) < 500
    }

    fun release() {
        bitmap.recycle()
    }
}